#define _CRT_SECURE_NO_WARNINGS
#include "game.h"

void SetMine(char board[Rows][Cols], int r, int c) {
	int count = Count_Mine;
	while (count) {
		int x = rand() % r + 1;
		int y = rand() % c + 1;
		if (board[x][y] == '0') {
			board[x][y] = '1';
			count--;
		}
	}
}